package com.zerdoor.service.impl;

import com.zerdoor.dao.OrderReportDao;
import com.zerdoor.service.OrderReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 订单报表 业务层接口实现类
 * Created by zhongjieyu on 2015/1/29.
 */
@Service
public class OrderReportServiceImpl implements OrderReportService {

    @Autowired
    private OrderReportDao orderReportDao;


    @Override
    public List<Map> findOrderWorksReport(Map<String, Object> result) throws Exception {

        return orderReportDao.findOrderWorksReport(result);
    }


    @Override
    public Map findCountOrderWorks(Map<String, Object> result) throws Exception {


        return orderReportDao.findCountOrderWorks(result);
    }



    @Override
    public List<Map> findOrderTaskReport(Map<String, Object> result) throws Exception {

        return orderReportDao.findOrderTaskReport(result);
    }

    @Override
    public List<Map> findOrderItemAvByTaskOrderId(int taskOrderId) throws Exception {

        return orderReportDao.findOrderItemAvByTaskOrderId(taskOrderId);
    }

    @Override
    public List<Map> findOrderStageByItemOrderId(int itemOrderId) throws Exception {

        return orderReportDao.findOrderStageByItemOrderId(itemOrderId);
    }

    @Override
    public List<Map> findOrderFeeByItemOrderId(int itemOrderId) throws Exception {


        return orderReportDao.findOrderFeeByItemOrderId(itemOrderId);
    }

    @Override
    public List<Map> findOrderPopurByTaskOrderId(Map param) throws Exception {


        return orderReportDao.findOrderPopurByTaskOrderId(param);
    }


    @Override
    public List<Map> findOrderRaceReport(Map param) throws Exception {


        return orderReportDao.findOrderRaceReport(param);
    }

    @Override
    public List<Map> findOrderRaceAvByOrderRaceId(int raceOrderId) throws Exception {


        return orderReportDao.findOrderRaceAvByOrderRaceId(raceOrderId);
    }

    @Override
    public List<Map> findOrderWinByOrderRaceId(int raceOrderId) throws Exception {

        return orderReportDao.findOrderWinByOrderRaceId(raceOrderId);
    }
}
